﻿namespace OrganizingStraightLineCode
{
    using System;
    using System.Collections.Generic;

    public class Bowl
    {
        public Bowl()
        {
            this.Content = new List<Vegetable>();
        }

        private List<Vegetable> Content { get; set; }

        public void Add(Vegetable vegetable)
        {
            if (vegetable.IsPeeled && vegetable.IsCut)
            {
                this.Content.Add(vegetable);
            }
            else
            {
                throw new ArgumentException("The vegetable should be peeled and cuted.");
            }
        }
    }
}